<!DOCTYPE html>
<html>
<head lang="zh-CN">
    <meta charset="UTF-8"/>
    <title>文件下载示例</title>
</head>
<body>
<h1>Hello World</h1>
<a th:href="@{/file/download}">文件下载</a>
<a th:href="@{/file/download(openStyle='inline')}">文件预览</a>
</body>
</html>